import request from '@/utils/request'
import request1 from '@/utils/request2'
// 首页待办信息
export const index = data => request.get('home/todo', data)

// 库存使用情况
export const kucun=params=>request.get('home/stockUseStatus',{params})

// 获取仓库信息
export const getstore = params => request1.get('warehouse/page', { params })

export const search = params => request1.get('/warehouse/page', { params })

// 删除仓库
export const delstore = id => request1.delete('/warehouse', {
  params: {
    ids: [id]
  }
})

// 首页库存情况
export const register = data => request1.get('home/areaUseStatus', data)

// 库存修改情况
export const update = data => request1.put('warehouse', data)

// 新增仓库
export const addStore = data => request1.post('warehouse', data)

// ck
export const getCK = () => request1.get('codeFactory/next/CK')

// 编辑
export const editstroe = data => request1.put('warehouse', data)
